﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Shell;
using System.ComponentModel.Design;
    
namespace Expect.VisualStudio.Extensions.Commands
{
    abstract class UnresolvedFixtureCommand : EditorCommand
    {
        public UnresolvedFixtureCommand(IExpectPackage pkg)
            : base(pkg)
        {
        }

        public UnresolvedFixtureCommand(IExpectPackage pkg, int id)
            : base(pkg, id)
        {
        }

        public override bool ShowCommand(SelectionResolution resolution)
        {
            if (!string.IsNullOrEmpty(resolution.Selection.Text) && resolution.FixtureResKind == FixtureResolutionKind.Unknown)
            {
                return true;
            }

            return false;
        }
    }
}
